home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI583.ASC < prev    next >
Text File  |  1993-03-18  |  12KB  |  397 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  583
  9.   VERSION  :  All
  10.        OS  :  DOS
  11.      DATE  :  March 18, 1993                           PAGE  :  1/6
  12.  
  13.     TITLE  :  Printing Envelopes on an HP LaserJet II Printer
  14.  
  15.  
  16.  
  17.  
  18.   Intended Audience
  19.   This Technical Information sheet is intended for Paradox users
  20.   from beginning to expert.
  21.  
  22.   Prerequisites
  23.   A basic understanding of the creation and use of reports as
  24.   detailed in the Paradox 4.0 User's Guide Chapter 7.
  25.  
  26.   Purpose
  27.   This document illustrates how to print envelopes on an HP
  28.   LaserJet Series II or compatible printer.
  29.  
  30.  
  31.   It is often desirable to print envelopes with addresses that are
  32.   stored in a database.  This can be accomplished by using the
  33.   Paradox Report feature.
  34.  
  35.   The first step is to create the report.  Choose Report | Design |
  36.   <Table Name>, then choose the report number, name the report, and
  37.   choose Free-form.  This will give you a Standard Free-form report
  38.   layout that looks something like this:
  39.  
  40.   ....+....10....+....20....+....30....+....40....+....50....+....60*
  41.  
  42.   ─page────────────────────────────────────────────────────────────
  43.  
  44.  
  45.   mm/dd/yy                     <TITLE>                     Page 999
  46.  
  47.   ─form────────────────────────────────────────────────────────────
  48.  
  49.   Name: AAAAAAAAAAAAAAAAAAAA
  50.   Street: AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  51.   City: AAAAAAAAAAA
  52.   State: AA
  53.   Zip Code: AAAAAAAAAA
  54.  
  55.   ─form────────────────────────────────────────────────────────────
  56.  
  57.  
  58.   ─page────────────────────────────────────────────────────────────
  59.  
  60.   ═════════════════════════════════════════════════════════════════
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                                NUMBER  :  583
  75.   VERSION  :  All
  76.        OS  :  DOS
  77.      DATE  :  March 18, 1993                           PAGE  :  2/6
  78.  
  79.     TITLE  :  Printing Envelopes on an HP LaserJet II Printer
  80.  
  81.  
  82.  
  83.  
  84.   Note: The ruler in the examples in this document only extend to
  85.         60 characters for formatting purposes.
  86.  
  87.   Next, remove all lines in the report outside of the Form Area
  88.   (the area between the two FORM lines).  To do this, place the
  89.   cursor at the far left of the line and press Ctrl+Y.  Then, press
  90.   Ctrl+V to place a vertical ruler in the report.  At this point
  91.   the report should look like this:
  92.  
  93.  
  94.   ....+....10....+....20....+....30....+....40....+....50....+....60*
  95.   1 ─page──────────────────────────────────────────────────────────
  96.   2 ─form──────────────────────────────────────────────────────────
  97.   3
  98.   4 Name: AAAAAAAAAAAAAAAAAAAA
  99.   5 Address: AAAAAAAAAAAAAAAA
  100.   6 City: AAAAAAAAAAAAAAAAAAA
  101.   7 State: AA
  102.   8 Zip Code: AAAAAAAAAA
  103.   9
  104.   10─form──────────────────────────────────────────────────────────
  105.   11─page──────────────────────────────────────────────────────────
  106.   ═════════════════════════════════════════════════════════════════
  107.  
  108.  
  109.   Next measure the size of the envelope you are using.  Now
  110.   multiply the width by ten to get the width setting for the
  111.   report, and multiply the length by six and round down to get the
  112.   page length of the report.
  113.  
  114.   Note: If you are going to use 8 lines per inch or a compressed
  115.         font for the envelopes, see the appendix at the end of the
  116.         paper).  For a 9 1/2" by 4 1/4"  envelope the width will be
  117.         95 and the length will be 24.  To set this, choose Setting
  118.         | PageLayout | Length and set the length to 24 and press
  119.         Enter.  Then choose Setting | PageLayout | Width and set
  120.         the width to 95 and press Enter.
  121.  
  122.   Next, you need to enter a setup string for the report.  This
  123.   example illustrates how to print Commercial 10 envelopes, and
  124.   manually feed them.  If you are using an envelope tray or feeder,
  125.   or a different sized envelope, see the Appendix at the end of
  126.   this document.  To enter the setup string choose Settings | Setup
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  Paradox                                NUMBER  :  583
  141.   VERSION  :  All
  142.        OS  :  DOS
  143.      DATE  :  March 18, 1993                           PAGE  :  3/6
  144.  
  145.     TITLE  :  Printing Envelopes on an HP LaserJet II Printer
  146.  
  147.  
  148.  
  149.  
  150.   | Custom | <Your Printer Port> and then type in
  151.   \027E\027&l3h81a1O as the Setup string and \027E as the Reset
  152.   string.
  153.  
  154.   Note: Paradox versions 3.5 and earlier do not have reset strings.
  155.         You will need to place a calculated field with "\027E" on a
  156.         blank line in the report footer.  Make sure you include the
  157.         quotes.
  158.  
  159.   Now you are ready to create the layout of your envelope.  There
  160.   are several ways to accomplish this, but there are a few rules
  161.   you need to follow.
  162.  
  163.       -  Make sure that the number of lines between the two FORM
  164.          lines does not exceed the number of lines you calculated
  165.          for the report length (24 in this example).
  166.  
  167.       -  Do not add any lines outside of the FORM band, and stick
  168.          to a single page width.  To determine how many Page Widths
  169.          are currently set, you will need to look at the Page Width
  170.          indicator on your screen.  In version 4.0, the indicator
  171.          is in the lower left corner of your report window, and is
  172.          given as two numbers with a colon ":" between them.  The
  173.          first number is the current Page Width and the second
  174.          number is the total Page Widths.  In versions of Paradox
  175.          prior to Paradox 4.0, the indicator appears as a fraction
  176.          in the upper right corner of your screen.  The top number
  177.          indicates your current Page Width, while the bottom number
  178.          gives you the total Page Widths.  You always want the
  179.          current Page Width to be 1, and the total Page Widths to
  180.          equal 1.
  181.  
  182.       -  Include a blank line at the bottom of the FORM band and
  183.          place the word PAGEBREAK on the far left side of this
  184.          line.
  185.  
  186.       -  In designing the layout, you will probably want to place a
  187.          few blank lines at the top of the FORM band, and position
  188.          the address over to the right in the FORM band to center
  189.          the Address on the envelope.
  190.  
  191.    
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.   PRODUCT  :  Paradox                                NUMBER  :  583
  207.   VERSION  :  All
  208.        OS  :  DOS
  209.      DATE  :  March 18, 1993                           PAGE  :  4/6
  210.  
  211.     TITLE  :  Printing Envelopes on an HP LaserJet II Printer
  212.  
  213.  
  214.  
  215.  
  216.   Here is one example of an envelope layout:
  217.  
  218.   ....+....10....+....20....+....30....+....40....+....50....+....60*
  219.   1 ─page──────────────────────────────────────────────────────────
  220.   2 ─form──────────────────────────────────────────────────────────
  221.   3     Joe Borland
  222.   4     1800 Green Hills Road
  223.   5     Scott's Valley, CA  95067
  224.   6
  225.   7 <───>
  226.   8  5 Spaces
  227.   9 <─────────────────────────────────>
  228.   10         40 Spaces            <Name Field>
  229.   11                              <Address Field>
  230.   12                              <City, State, and Zip Fields>
  231.   13 PAGEBREAK
  232.   14─form──────────────────────────────────────────────────────────
  233.   15─page──────────────────────────────────────────────────────────
  234.   ═════════════════════════════════════════════════════════════════
  235.  
  236.   Now you are ready to print!
  237.  
  238.   It is usually best to print a couple of test pages first to make
  239.   sure that the address is positioned in the correct location on
  240.   the envelope.  If it isn't, you can adjust the number of lines
  241.   above the address to compensate, or move the fields left or right
  242.   to center the address on the envelope.  To print only a few
  243.   envelopes from your database, you can choose Reports |
  244.   RangeOutput, type in the name of your table, select the Report
  245.   number, choose Printer, type in the Beginning page number, press
  246.   Enter, and type in the Ending page number and press Enter.  You
  247.   can also use a query to select particular records that you want
  248.   to print.  For information on this technique, refer to Technical
  249.   Information Sheet number 685.
  250.    
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.   PRODUCT  :  Paradox                                NUMBER  :  583
  273.   VERSION  :  All
  274.        OS  :  DOS
  275.      DATE  :  March 18, 1993                           PAGE  :  5/6
  276.  
  277.     TITLE  :  Printing Envelopes on an HP LaserJet II Printer
  278.  
  279.  
  280.  
  281.  
  282.                               APPENDIX
  283.  
  284.   Below are a list of common questions and answers about how to set
  285.   up a Paradox report to print on envelopes:
  286.  
  287.  
  288.   Questions and Answers
  289.  
  290.   1)   Q: How do I set this up to use an envelope feeder or tray?
  291.  
  292.        A: You can adjust the setup string for that.  The standard
  293.           setup string looks like this:
  294.  
  295.              \027E\027&l3h81a1O
  296.                         └── This number can be changed to:
  297.                             1= Upper Tray
  298.                             3= Manual Envelope Input
  299.                             4= Lower Tray
  300.                             6= Envelope Feeder
  301.  
  302.   2)   Q: How do I set up an envelope for 8 lines per inch or
  303.           compressed print?
  304.  
  305.        A: First you adjust the setup string.  The standard setup
  306.           string looks like this: \027E\027&l3h81a1O.  You can add
  307.           \027&l8D to the end of the string for 8 lines per inch,
  308.           and \027(s16.66H for compressed print.  Both of these
  309.           strings can be used at the same time.  Second, you will
  310.           need to adjust the length and width of the report.
  311.  
  312.           To determine the length of the report, multiply the
  313.           length of the envelope in inches by 8 (for 8 lines per
  314.           inch).  Change the report length by choosing Setting |
  315.           PageLayout | Length, type in the value that you
  316.           calculated for the length, and press Enter.
  317.  
  318.           For compressed print multiply the width of the envelope
  319.           in inches by 16.66 and round the value to get the report
  320.           width.  Change the report width by choosing Setting |
  321.           PageLayout | Width, type in the value that you calculated
  322.           for the width, and press Enter.
  323.    
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.   PRODUCT  :  Paradox                                NUMBER  :  583
  339.   VERSION  :  All
  340.        OS  :  DOS
  341.      DATE  :  March 18, 1993                           PAGE  :  6/6
  342.  
  343.     TITLE  :  Printing Envelopes on an HP LaserJet II Printer
  344.  
  345.  
  346.  
  347.  
  348.   3)   Q: How do I print a report on different size envelopes?
  349.  
  350.        A: Adjust the setup string.  The standard setup string looks
  351.           like this for standard 9 1/2" by 4 1/4" Commercial 10
  352.           envelopes:
  353.  
  354.              \027E\027&l3h81a1O.
  355.                           └┴─ These two numbers can be changed to:
  356.                           80 = Monarch (7 1/2" by 4")
  357.                           81 = Commercial 10 (9 1/2" by 4 1/4")
  358.                           90 = International DL (9" by 6 1/3")
  359.                           91 = International C5 (8 2/3" by 4 1/3")
  360.  
  361.   4)   Q: When I print out the envelopes, the address creeps down
  362.           the envelope on each successive record, or I get multiple
  363.           addresses on each envelope.
  364.  
  365.        A: From the Main menu choose Report | SetPrinter | Override
  366.           | EndOfPage and set it to FormFeed.  Next make sure that
  367.           the total number of lines in your form band do not exceed
  368.           the length of the report you calculated.  Finally, make
  369.           sure that you have the word PAGEBREAK on the last line of
  370.           the FORM band on a line by itself, and that it is
  371.           positioned at the left margin of the report
  372.           specification.
  373.  
  374.   5)   Q: I am getting a blank envelope for the first envelope or
  375.           between each printed envelope.
  376.  
  377.        A: Make sure that the number of lines in your form band do
  378.           not exceed the number of lines that you have calculated
  379.           for the report length.
  380.  
  381.  
  382.   DISCLAIMER: You have the right to use this technical information
  383.   subject to the terms of the No-Nonsense License Statement that
  384.   you received with the Borland product to which this information
  385.   pertains.
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.